package com.wochoose.jojo.ucm.biz.web;//package com.wochoose.ucm.web;
//
//import com.wochoose.ucm.login.LoginEmailQuery;
//import com.wochoose.ucm.login.LoginMobileQuery;
//import com.wochoose.ucm.login.LoginNormalQuery;
//import com.wochoose.ucm.login.LoginVO;
//import com.wochoose.ucm.service.LoginService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * 登录API
// *
// * @author ggeagle
// */
//@RestController
//@RequestMapping("/login")
//@Slf4j
//public class LoginController {
//    @PostMapping("/mobile")
//    public LoginVO loginByMobile(@RequestBody LoginMobileQuery loginMobileQuery) {
//        LoginVO loginVO = this.loginService.loginByMobile(loginMobileQuery);
//        // 系统登录认证
//        JwtAuthenticatioToken token = SecurityUtils.login(request, username, password, authenticationManager);
//
//        return HttpResult.ok(token);
//    }
//
//    @PostMapping("/normal")
//    public LoginVO loginByUserNameAndPass(@RequestBody LoginNormalQuery loginNormalQuery) {
//        LoginVO loginVO = this.loginService.loginByNormalWay(loginNormalQuery);
//        return loginVO;
//    }
//
//    @PostMapping("/email")
//    public LoginVO loginByEmail(@RequestBody LoginEmailQuery loginEmailQuery) {
//        LoginVO loginVO = this.loginService.loginByEmail(loginEmailQuery);
//        return loginVO;
//    }
//
//    @Autowired
//    private AuthenticationManager authenticationManager;
//
//    @Autowired
//    private LoginService loginService;
//}